// GLGraphicsView.h
//
#ifndef GLGRAPHICSVIEW_ONCE
#define GLGRAPHICSVIEW_ONCE

#include <QGraphicsView>

class QResizeEvent;
class QGLWidget;

namespace QtFwk{

class GLGraphicsView : public QGraphicsView
{
	//Q_OBJECT

private:
protected:
	void resizeEvent		( QResizeEvent *e );
	void leaveEvent			( QEvent *e);
	void enterEvent			( QEvent *e);

	static QGLWidget *sharedGLWidget;
	static QGLWidget *getSharedGLWidget();
public:

	GLGraphicsView( QWidget *parent, bool sharingContext  );
	virtual ~GLGraphicsView() {}

	void makeCurrent();
};

}


#endif